<?php
/**
 * Created by PhpStorm.
 * User: mac
 * Date: 2021/3/15
 * Time: 10:41 PM
 */

namespace App\Factory;


abstract class  Pizza
{
    protected $name; //名字
    public abstract function prepare();
    public function bake(){
        echo $this->name."baking";
    }
    public function cut(){
        echo $this->name."cutting";
    }
    public function box(){
        echo $this->name."boxing";
    }
    public function setName($name){
        $this->name = $name;
    }
}